package com.backend.modules.task.repository;

import com.backend.modules.task.entity.TaskSubmissionFile;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 任务提交文件数据访问接口
 */
public interface TaskSubmissionFileRepository extends 
        JpaRepository<TaskSubmissionFile, Long>, 
        JpaSpecificationExecutor<TaskSubmissionFile> {

    /**
     * 根据提交ID查询文件列表
     */
    List<TaskSubmissionFile> findBySubmissionIdOrderBySort(Long submissionId);
    /**
     * 根据提交 id 删除文件列表
     */
     void deleteBySubmissionId(Long submissionId);
} 